<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://www.icesoft.com/icefaces/component" prefix="ice"%>

<f:view>

	<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Cadastro usuário</title>
	<link rel="stylesheet" type="text/css"
		href="./xmlhttp/css/rime/rime.css" />
	</head>
	<body>
	<ice:form>

		<ice:panelTabSet>

			<ice:panelTab label="Dados de usuário">
				<ice:panelGrid columns="3">
					<ice:outputLabel id="labelUsuarioLogin" value="Nome de usuário:" for="fieldUsuarioLogin" />
					<ice:inputText id="fieldUsuarioLogin" value="#{usuarioAction.usuario.login}" required="true"
								   partialSubmit="true" validator="#{usuarioAction.validarUsuario}">
						<f:validateLength minimum="3" maximum="10" />
					</ice:inputText>
					<ice:message style="color: red;" id="loginError" for="fieldUsuarioLogin" />

					<ice:outputLabel id="labelUsuarioSenha" value="Senha:" for="fieldUsuarioSenha" />
					<ice:inputSecret id="fieldUsuarioSenha" value="#{usuarioAction.usuario.senha}" required="true">
						<f:validateLength minimum="3" maximum="10" />
					</ice:inputSecret>
					<ice:message style="color: red;" id="senhaError" for="fieldUsuarioSenha" />

					<ice:outputLabel id="labelconfirmaSenha" value="Confirme sua senha:" for="confirmaSenha" />
					<ice:inputSecret id="confirmaSenha" value="#{usuarioAction.confirmaSenha}" required="true">
						<f:validateLength minimum="3" maximum="10" />
					</ice:inputSecret>
					<ice:message style="color: red;" id="confirmaSenhaError" for="confirmaSenha" />

					<ice:outputLabel id="labelUsuarioEmail" value="E-mail:" for="fieldUsuarioEmail" dir="right" />
					<ice:inputText id="fieldUsuarioEmail" value="#{usuarioAction.usuario.email}" required="true"
								   partialSubmit="true" validator="#{usuarioAction.validarEmail}">
					</ice:inputText>
					<ice:message style="color: red;" id="emailError" for="fieldUsuarioEmail" />

					<ice:outputLabel id="labelConfirmaEmail" value="Confirme seu E-mail:" for="confirmaEmail" />
					<ice:inputText id="confirmaEmail" value="#{usuarioAction.confirmaEmail}" required="true"
								   partialSubmit="true" validator="#{usuarioAction.validarEmail}">
					</ice:inputText>
					<ice:message style="color: red;" id="confirmaEmailError" for="confirmaEmail" />

					<ice:commandButton value="cadastrar" action="#{usuarioAction.cadastrar}" />
				</ice:panelGrid>
			</ice:panelTab>
			
			<ice:panelTab label="Perfil">
			
			</ice:panelTab>			
		</ice:panelTabSet>				
	</ice:form>
			
	</body>
	</html>
</f:view>










